 import HR from "./homeinit";
 import FL from "./fenleilist.js"
 import GDS from "./goodsinit.js"
 import HIS from "./sslist.js"
 import LIST from "./listinit.js"
 import CAR from "./goodscar.js"
 
export default function(state = {
	homeinit : {
		homebanner :[],
		homeimg :"",
		homegoods:[]
	},
	fenlist :{
		goodslist :[]
	},
	goodsinit:{
		goodsbanner:[],
		goodspric:{
			goods_name:"",
			goods_price:"",
			goods_salenum:"",
			goods_storage:"",
			goods_eval_list:[]
		},
		goodstui:[],
		car:{
			id:"",
			img:"",
			conent:"",
			pric:"",
			num:""
		}
	},
	ss:{
		history :[]
	},
	list:{
		goods_list:[]
	},
	goodscar:[
	]
}, action){
	var newState = {
        homeinit : HR(state.homeinit , action),
        fenlist : FL(state.fenlist , action),
        goodsinit : GDS(state.goodsinit ,action),
        ss:HIS(state.ss,action),
        list:LIST(state.list,action),
        goodscar:CAR(state.goodscar,action)
  }
    return newState;
    }

